'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
    async up(queryInterface, Sequelize) {
        await queryInterface.bulkInsert('Records', [
            {
                categoryId: 1,
                serviceId: 6,
                customerId: 1,
                channelId: 1,
                locationId: 1,
                eLocation: "/综合服务部-电子档案流转/即办电子档案/登记审核类/职工参保状态变更（停保）/202307/20230721/",
                userId: 2,
                bankId: 1,
                acceptedTime: "2023/7/21",
                endTime: "2023/7/21",
                notes: "",
                auditUserId: 0,
                auditId: 1,
                auditSuggest: '无',
                createdAt: new Date(),
                updatedAt: new Date()
            },
            {
                categoryId: 3,
                serviceId: 19,
                customerId: 1,
                channelId: 2,
                locationId: 2,
                eLocation: "/综合服务部-电子档案流转/即办电子档案/登记审核类/跨省转移接续（转入）/202307/20230721/",
                userId: 2,
                bankId: 1,
                acceptedTime: "2023/7/21",
                endTime: "2023/7/21",
                notes: "",
                auditUserId: 2,
                auditId: 2,
                auditSuggest: '无',
                createdAt: new Date(),
                updatedAt: new Date()
            },
            {
                categoryId: 1,
                serviceId: 8,
                customerId: 1,
                channelId: 1,
                locationId: 1,
                eLocation: "/综合服务部-电子档案流转/流转电子档案/登记服务类/单位参保登记/202307/20230721/",
                userId: 2,
                bankId: 1,
                acceptedTime: "2023/7/21",
                endTime: "2023/7/21",
                notes: "",
                auditUserId: 2,
                auditId: 2,
                auditSuggest: '无',
                createdAt: new Date(),
                updatedAt: new Date()
            },
            {
                categoryId: 6,
                serviceId: 50,
                customerId: 1,
                channelId: 1,
                locationId: 1,
                eLocation: "/综合服务部-电子档案流转/流转电子档案/登记服务类/个人账户清退/202307/20230721/",
                userId: 2,
                bankId: 1,
                acceptedTime: "2023/7/21",
                endTime: "2023/7/21",
                notes: "",
                auditUserId: 2,
                auditId: 3,
                auditSuggest: '无',
                createdAt: new Date(),
                updatedAt: new Date()
            },
            {
                categoryId: 1,
                serviceId: 1,
                customerId: 3,
                channelId: 2,
                locationId: 2,
                eLocation: "123",
                userId: 2,
                bankId: 1,
                acceptedTime: "2023/10/27",
                endTime: "2023/10/31",
                notes: "",
                auditUserId: 2,
                auditId: 2,
                auditSuggest: '无',
                createdAt: new Date(),
                updatedAt: new Date()
            }
        ], {});
    },

    async down(queryInterface, Sequelize) {
        /**
         * Add commands to revert seed here.
         *
         * Example:
         * await queryInterface.bulkDelete('People', null, {});
         */
        await queryInterface.bulkDelete('Records', null, {});
    }
};
